package events 
{
	import flash.events.Event;
	import com.lohika.Entity;
	import com.lohika.Entity;
	
	/**
	 * ...
	 * @author Vitaly Vrublevskyy
	 */
	public class GameEvent extends Event 
	{
		public static const UPDATE_SCRORE:String = "update_scrore";
		public static const GAME_OVER:String = "game_over";
		public static const REMOVED_ALL_LINES:String = "removed_all_lines";
		public static const RESTART:String = "restart";
		public static const CONTINUED:String = "continued";
		
		public var score:uint;

		
		public function GameEvent(type:String, score:uint = 0, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			this.score = score;
		} 
		
		public override function clone():Event 
		{ 
			return new GameEvent(type, score, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("GameEvent", "type", "score", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}